
<form role="form" class="epii" method="post" data-form="1" action="{url hospital modify_img }">

    <div class="form-group">
        <label class="control-label">logo图:</label>
        <div style="width: 60%"
             data-upload-preview="1"
             data-multiple="1"
             data-input-id="logo_id"
             data-maxcount="1"
             data-mimetype="jpg,gif,png,jpeg"
             data-maxsize="20480kb"
             data-url="{url file upload}"

             data-upload-success=""
        ></div>
    </div>
    <div class="form-group hide">
        <label class="control-label hide">图片存储地址:</label>
        <input type="text" class="form-control" readonly id="logo_id" name="r[logo]" value="{? $info.logo}"   data-src="{? $info.logo}">
    </div>
    <div class="form-group">
        <label class="control-label">轮播图:</label>
        <div style="width: 60%"
             data-upload-preview="1"
             data-multiple="1"
             data-input-id="img_id"
             data-maxcount="5"
             data-mimetype="jpg,gif,png,jpeg"
             data-maxsize="20480kb"
             data-url="{url file upload}"

             data-upload-success=""
        ></div>
    </div>
    <div class="form-group hide">
        <label class="control-label hide">图片存储地址:</label>
        <input type="text" class="form-control" readonly id="img_id" name="r[imgs]" value="{? $info.imgs}"   data-src="{? $info.imgs}">
    </div>
    <input type="hidden" name="id" value="{$id?0}">
    <div class="form-footer">
        <button type="submit" class="btn btn-primary">提交</button>
    </div>
</form>
<script>
    function upload_success() {
        var src=$('.epii-upload-file-icon>img').attr('src');
        console.log(src,'src')
        $('input[name="r[logo]"]').val(src)
    }

</script>
